import request from '@/utils/request'
// 根据月份获取柱状图
export function timeMonth(data) {
    return request({
      url: '/manage/getUserMonthCallCount',
      method: 'post',
      data: data
    })
  }
// 获取监听列表
export function searchTime(data) {
    return request({
      url: '/manage/getRYCallInfoList',
      method: 'post',
      data: data
    })
  }
// 重置密码
export function resetPassword(data) {
    return request({
      url: '/manage/resetPassword',
      method: 'post',
      data: data
    })
  }
// 编辑查看数据
export function handleEdit(query) {
    return request({
      url: '/manage/editUser',
      method: 'get',
      params: query
    })
  }
// 获取数据
export function getData(data) {
    return request({
      url: '/manage/selectUserList',
      method: 'post',
      data: data
    })
  }
// 删除封装
export function deleteData(query) {
    return request({
      url: '/manage/deleteUser',
      method: 'get',
      params: query
    })
  }

//   EditDialog

// 获取角色列表
export function getRoleList() {
    return request({
      url: '/role/getRoleList',
      method: 'get'
    })
  }
// 保存或者增加
export function submitForm(url,data) {
    return request({
      url: url,
      method: 'post',
      data: data
    })
  }